package adapter.test;import adapter.Duck;import adapter.MallardDuck;import adapter.TurkeyAdapter;import adapter.WildTurkey;/** * Created by Administrator on 2018-10-25. */public class DuckTestDrive {    public  static  void  main(String[] args){        MallardDuck duck = new MallardDuck();        WildTurkey wildTurkey = new WildTurkey();        Duck turkeyAdapter = new TurkeyAdapter(wildTurkey);        System.out.println("The Turkey says....");        wildTurkey.gobble();        wildTurkey.fly();        System.out.println("\nThe Duck says.....");        TestDuck(duck);        System.out.println("\n ThrkeyAdapter says...");        TestDuck(turkeyAdapter);    }    static void TestDuck(Duck duck){        duck.fly();        duck.quack();    }}